<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    bbb = 111;
    var aaa = {
//        bbb: 333,
        ccc: function(){
            console.log(bbb)
        }
    }
    aaa.ccc();
</script>
</html>